home *** CD-ROM | disk | FTP | other *** search
Unknown | 2004-12-14 | 4.0 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was not able to be converted.
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| file
| data
| default
| |
100%
| gt2
| HTML (Hyper Text Markup Language) Datei
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 47 40 2f 2a 3d 3d 3d 3d |........|G@/*====|
|00000010| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000020| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000030| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000040| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000050| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 0d 0a 09 57 65 62 52 |========|=...WebR|
|00000060| 65 73 70 6f 6e 73 65 20 | 69 73 20 75 73 65 64 20 |esponse |is used |
|00000070| 62 79 20 57 65 62 41 70 | 70 6c 69 63 61 74 69 6f |by WebAp|plicatio|
|00000080| 6e 20 74 6f 20 68 61 6e | 64 6c 65 20 6d 6f 73 74 |n to han|dle most|
|00000090| 20 61 73 70 65 63 74 73 | 20 6f 66 20 73 65 6e 64 | aspects| of send|
|000000a0| 69 6e 67 0d 0a 09 68 74 | 74 70 20 69 6e 66 6f 72 |ing...ht|tp infor|
|000000b0| 6d 61 74 69 6f 6e 20 74 | 6f 20 74 68 65 20 63 6c |mation t|o the cl|
|000000c0| 69 65 6e 74 2e 20 49 74 | 20 73 65 72 76 65 73 20 |ient. It| serves |
|000000d0| 61 73 20 61 20 62 72 69 | 64 67 65 20 62 65 74 77 |as a bri|dge betw|
|000000e0| 65 65 6e 20 57 65 62 41 | 70 70 6c 69 63 61 74 69 |een WebA|pplicati|
|000000f0| 6f 6e 0d 0a 09 61 6e 64 | 20 57 65 62 43 6f 6e 6e |on...and| WebConn|
|00000100| 65 63 74 69 6f 6e 2e 0d | 0a 3d 3d 3d 3d 3d 3d 3d |ection..|.=======|
|00000110| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000120| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000130| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000140| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000150| 3d 3d 3d 3d 3d 3d 2a 2f | 0d 0a 0d 0a 63 6c 61 73 |======*/|....clas|
|00000160| 73 20 57 65 62 52 65 73 | 70 6f 6e 73 65 20 65 78 |s WebRes|ponse ex|
|00000170| 74 65 6e 64 73 20 43 6f | 72 65 2e 4f 62 6a 65 63 |tends Co|re.Objec|
|00000180| 74 0d 0a 09 6e 61 74 69 | 76 65 0d 0a 09 6e 6f 65 |t...nati|ve...noe|
|00000190| 78 70 6f 72 74 3b 0d 0a | 0d 0a 76 61 72 20 70 72 |xport;..|..var pr|
|000001a0| 69 76 61 74 65 20 6e 61 | 74 69 76 65 20 63 6f 6e |ivate na|tive con|
|000001b0| 73 74 20 69 6e 74 20 52 | 65 70 6c 61 63 65 6d 65 |st int R|eplaceme|
|000001c0| 6e 74 4d 61 70 5b 35 5d | 3b 09 2f 2f 20 54 4d 61 |ntMap[5]|;.// TMa|
|000001d0| 70 3c 46 53 74 72 69 6e | 67 2c 20 46 53 74 72 69 |p<FStrin|g, FStri|
|000001e0| 6e 67 3e 21 0d 0a 76 61 | 72 20 63 6f 6e 73 74 20 |ng>!..va|r const |
|000001f0| 63 6f 6e 66 69 67 20 73 | 74 72 69 6e 67 20 49 6e |config s|tring In|
|00000200| 63 6c 75 64 65 50 61 74 | 68 3b 0d 0a 76 61 72 20 |cludePat|h;..var |
|00000210| 57 65 62 43 6f 6e 6e 65 | 63 74 69 6f 6e 20 43 6f |WebConne|ction Co|
|00000220| 6e 6e 65 63 74 69 6f 6e | 3b 0d 0a 76 61 72 20 62 |nnection|;..var b|
|00000230| 6f 6f 6c 20 62 53 65 6e | 74 54 65 78 74 3b 20 2f |ool bSen|tText; /|
|00000240| 2f 20 75 73 65 64 20 74 | 6f 20 77 61 72 6e 20 68 |/ used t|o warn h|
|00000250| 65 61 64 65 72 73 20 61 | 6c 72 65 61 64 79 20 73 |eaders a|lready s|
|00000260| 65 6e 74 0d 0a 76 61 72 | 20 62 6f 6f 6c 20 62 53 |ent..var| bool bS|
|00000270| 65 6e 74 52 65 73 70 6f | 6e 73 65 3b 0d 0a 0d 0a |entRespo|nse;....|
|00000280| 2f 2f 20 75 68 74 6d 20 | 69 6e 63 6c 75 64 69 6e |// uhtm |includin|
|00000290| 67 0d 0a 6e 61 74 69 76 | 65 20 66 69 6e 61 6c 20 |g..nativ|e final |
|000002a0| 66 75 6e 63 74 69 6f 6e | 20 53 75 62 73 74 28 73 |function| Subst(s|
|000002b0| 74 72 69 6e 67 20 56 61 | 72 69 61 62 6c 65 2c 20 |tring Va|riable, |
|000002c0| 73 74 72 69 6e 67 20 56 | 61 6c 75 65 2c 20 6f 70 |string V|alue, op|
|000002d0| 74 69 6f 6e 61 6c 20 62 | 6f 6f 6c 20 62 43 6c 65 |tional b|ool bCle|
|000002e0| 61 72 29 3b 0d 0a 6e 61 | 74 69 76 65 20 66 69 6e |ar);..na|tive fin|
|000002f0| 61 6c 20 66 75 6e 63 74 | 69 6f 6e 20 43 6c 65 61 |al funct|ion Clea|
|00000300| 72 53 75 62 73 74 28 29 | 3b 0d 0a 6e 61 74 69 76 |rSubst()|;..nativ|
|00000310| 65 20 66 69 6e 61 6c 20 | 66 75 6e 63 74 69 6f 6e |e final |function|
|00000320| 20 49 6e 63 6c 75 64 65 | 55 48 54 4d 28 73 74 72 | Include|UHTM(str|
|00000330| 69 6e 67 20 46 69 6c 65 | 6e 61 6d 65 29 3b 0d 0a |ing File|name);..|
|00000340| 6e 61 74 69 76 65 20 66 | 69 6e 61 6c 20 66 75 6e |native f|inal fun|
|00000350| 63 74 69 6f 6e 20 49 6e | 63 6c 75 64 65 42 69 6e |ction In|cludeBin|
|00000360| 61 72 79 46 69 6c 65 28 | 73 74 72 69 6e 67 20 46 |aryFile(|string F|
|00000370| 69 6c 65 6e 61 6d 65 29 | 3b 0d 0a 23 69 66 20 49 |ilename)|;..#if I|
|00000380| 47 5f 54 52 49 42 45 53 | 33 5f 41 44 4d 49 4e 20 |G_TRIBES|3_ADMIN |
|00000390| 20 20 2f 2f 20 67 6c 65 | 6e 6e 3a 20 61 64 6d 69 | // gle|nn: admi|
|000003a0| 6e 20 73 75 70 70 6f 72 | 74 0d 0a 6e 61 74 69 76 |n suppor|t..nativ|
|000003b0| 65 20 66 69 6e 61 6c 20 | 66 75 6e 63 74 69 6f 6e |e final |function|
|000003c0| 20 73 74 72 69 6e 67 20 | 4c 6f 61 64 50 61 72 73 | string |LoadPars|
|000003d0| 65 64 55 48 54 4d 28 73 | 74 72 69 6e 67 20 46 69 |edUHTM(s|tring Fi|
|000003e0| 6c 65 6e 61 6d 65 29 3b | 09 09 2f 2f 20 46 6f 72 |lename);|..// For|
|000003f0| 20 74 65 6d 70 6c 61 74 | 65 64 20 77 65 62 20 69 | templat|ed web i|
|00000400| 74 65 6d 73 2c 20 75 73 | 65 73 20 53 75 62 73 74 |tems, us|es Subst|
|00000410| 20 74 6f 6f 0d 0a 6e 61 | 74 69 76 65 20 66 69 6e | too..na|tive fin|
|00000420| 61 6c 20 66 75 6e 63 74 | 69 6f 6e 20 73 74 72 69 |al funct|ion stri|
|00000430| 6e 67 20 47 65 74 48 54 | 54 50 45 78 70 69 72 61 |ng GetHT|TPExpira|
|00000440| 74 69 6f 6e 28 6f 70 74 | 69 6f 6e 61 6c 20 69 6e |tion(opt|ional in|
|00000450| 74 20 4f 66 66 73 65 74 | 53 65 63 6f 6e 64 73 29 |t Offset|Seconds)|
|00000460| 3b 0d 0a 23 65 6e 64 69 | 66 0d 0a 0d 0a 65 76 65 |;..#endi|f....eve|
|00000470| 6e 74 20 53 65 6e 64 54 | 65 78 74 28 73 74 72 69 |nt SendT|ext(stri|
|00000480| 6e 67 20 54 65 78 74 2c | 20 6f 70 74 69 6f 6e 61 |ng Text,| optiona|
|00000490| 6c 20 62 6f 6f 6c 20 62 | 4e 6f 43 52 4c 46 29 0d |l bool b|NoCRLF).|
|000004a0| 0a 7b 0d 0a 09 69 66 28 | 21 62 53 65 6e 74 54 65 |.{...if(|!bSentTe|
|000004b0| 78 74 29 0d 0a 09 7b 0d | 0a 09 09 53 65 6e 64 53 |xt)...{.|...SendS|
|000004c0| 74 61 6e 64 61 72 64 48 | 65 61 64 65 72 73 28 29 |tandardH|eaders()|
|000004d0| 3b 0d 0a 09 09 62 53 65 | 6e 74 54 65 78 74 20 3d |;....bSe|ntText =|
|000004e0| 20 54 72 75 65 3b 0d 0a | 09 7d 09 0d 0a 0d 0a 09 | True;..|.}......|
|000004f0| 69 66 28 62 4e 6f 43 52 | 4c 46 29 0d 0a 09 09 43 |if(bNoCR|LF)....C|
|00000500| 6f 6e 6e 65 63 74 69 6f | 6e 2e 53 65 6e 64 54 65 |onnectio|n.SendTe|
|00000510| 78 74 28 54 65 78 74 29 | 3b 0d 0a 09 65 6c 73 65 |xt(Text)|;...else|
|00000520| 0d 0a 09 09 43 6f 6e 6e | 65 63 74 69 6f 6e 2e 53 |....Conn|ection.S|
|00000530| 65 6e 64 54 65 78 74 28 | 54 65 78 74 24 43 68 72 |endText(|Text$Chr|
|00000540| 28 31 33 29 24 43 68 72 | 28 31 30 29 29 3b 0d 0a |(13)$Chr|(10));..|
|00000550| 7d 0d 0a 0d 0a 65 76 65 | 6e 74 20 53 65 6e 64 42 |}....eve|nt SendB|
|00000560| 69 6e 61 72 79 28 69 6e | 74 20 43 6f 75 6e 74 2c |inary(in|t Count,|
|00000570| 20 62 79 74 65 20 42 5b | 32 35 35 5d 29 0d 0a 7b | byte B[|255])..{|
|00000580| 0d 0a 09 43 6f 6e 6e 65 | 63 74 69 6f 6e 2e 53 65 |...Conne|ction.Se|
|00000590| 6e 64 42 69 6e 61 72 79 | 28 43 6f 75 6e 74 2c 20 |ndBinary|(Count, |
|000005a0| 42 29 3b 0d 0a 7d 0d 0a | 0d 0a 23 69 66 20 49 47 |B);..}..|..#if IG|
|000005b0| 5f 54 52 49 42 45 53 33 | 5f 41 44 4d 49 4e 20 20 |_TRIBES3|_ADMIN |
|000005c0| 20 2f 2f 20 67 6c 65 6e | 6e 3a 20 61 64 6d 69 6e | // glen|n: admin|
|000005d0| 20 73 75 70 70 6f 72 74 | 0d 0a 66 75 6e 63 74 69 | support|..functi|
|000005e0| 6f 6e 20 53 65 6e 64 43 | 61 63 68 65 64 46 69 6c |on SendC|achedFil|
|000005f0| 65 28 73 74 72 69 6e 67 | 20 46 69 6c 65 6e 61 6d |e(string| Filenam|
|00000600| 65 2c 20 6f 70 74 69 6f | 6e 61 6c 20 73 74 72 69 |e, optio|nal stri|
|00000610| 6e 67 20 43 6f 6e 74 65 | 6e 74 54 79 70 65 29 0d |ng Conte|ntType).|
|00000620| 0a 7b 0d 0a 09 69 66 28 | 21 62 53 65 6e 74 54 65 |.{...if(|!bSentTe|
|00000630| 78 74 29 0d 0a 09 7b 0d | 0a 09 09 53 65 6e 64 53 |xt)...{.|...SendS|
|00000640| 74 61 6e 64 61 72 64 48 | 65 61 64 65 72 73 28 43 |tandardH|eaders(C|
|00000650| 6f 6e 74 65 6e 74 54 79 | 70 65 2c 20 74 72 75 65 |ontentTy|pe, true|
|00000660| 29 3b 0d 0a 09 09 62 53 | 65 6e 74 54 65 78 74 20 |);....bS|entText |
|00000670| 3d 20 54 72 75 65 3b 0d | 0a 09 7d 09 0d 0a 09 49 |= True;.|..}....I|
|00000680| 6e 63 6c 75 64 65 55 48 | 54 4d 28 46 69 6c 65 6e |ncludeUH|TM(Filen|
|00000690| 61 6d 65 29 3b 0d 0a 7d | 0d 0a 23 65 6e 64 69 66 |ame);..}|..#endif|
|000006a0| 0d 0a 0d 0a 66 75 6e 63 | 74 69 6f 6e 20 46 61 69 |....func|tion Fai|
|000006b0| 6c 41 75 74 68 65 6e 74 | 69 63 61 74 69 6f 6e 28 |lAuthent|ication(|
|000006c0| 73 74 72 69 6e 67 20 52 | 65 61 6c 6d 29 0d 0a 7b |string R|ealm)..{|
|000006d0| 0d 0a 09 48 54 54 50 45 | 72 72 6f 72 28 34 30 31 |...HTTPE|rror(401|
|000006e0| 2c 20 52 65 61 6c 6d 29 | 3b 0d 0a 7d 0d 0a 0d 0a |, Realm)|;..}....|
|000006f0| 66 75 6e 63 74 69 6f 6e | 20 48 54 54 50 52 65 73 |function| HTTPRes|
|00000700| 70 6f 6e 73 65 28 73 74 | 72 69 6e 67 20 48 65 61 |ponse(st|ring Hea|
|00000710| 64 65 72 29 0d 0a 7b 0d | 0a 09 48 54 54 50 48 65 |der)..{.|..HTTPHe|
|00000720| 61 64 65 72 28 48 65 61 | 64 65 72 29 3b 0d 0a 09 |ader(Hea|der);...|
|00000730| 62 53 65 6e 74 52 65 73 | 70 6f 6e 73 65 20 3d 20 |bSentRes|ponse = |
|00000740| 54 72 75 65 3b 0d 0a 7d | 0d 0a 0d 0a 66 75 6e 63 |True;..}|....func|
|00000750| 74 69 6f 6e 20 48 54 54 | 50 48 65 61 64 65 72 28 |tion HTT|PHeader(|
|00000760| 73 74 72 69 6e 67 20 48 | 65 61 64 65 72 29 0d 0a |string H|eader)..|
|00000770| 7b 0d 0a 09 69 66 28 62 | 53 65 6e 74 54 65 78 74 |{...if(b|SentText|
|00000780| 29 0d 0a 09 09 4c 6f 67 | 28 22 43 61 6e 27 74 20 |)....Log|("Can't |
|00000790| 73 65 6e 64 20 68 65 61 | 64 65 72 73 20 2d 20 61 |send hea|ders - a|
|000007a0| 6c 72 65 61 64 79 20 63 | 61 6c 6c 65 64 20 53 65 |lready c|alled Se|
|000007b0| 6e 64 54 65 78 74 28 29 | 22 29 3b 0d 0a 0d 0a 2f |ndText()|");..../|
|000007c0| 2f 09 4c 6f 67 28 22 53 | 65 6e 74 3a 22 40 48 65 |/.Log("S|ent:"@He|
|000007d0| 61 64 65 72 29 3b 0d 0a | 09 43 6f 6e 6e 65 63 74 |ader);..|.Connect|
|000007e0| 69 6f 6e 2e 53 65 6e 64 | 54 65 78 74 28 48 65 61 |ion.Send|Text(Hea|
|000007f0| 64 65 72 24 43 68 72 28 | 31 33 29 24 43 68 72 28 |der$Chr(|13)$Chr(|
|00000800| 31 30 29 29 3b 0d 0a 7d | 0d 0a 0d 0a 66 75 6e 63 |10));..}|....func|
|00000810| 74 69 6f 6e 20 48 54 54 | 50 45 72 72 6f 72 28 69 |tion HTT|PError(i|
|00000820| 6e 74 20 45 72 72 6f 72 | 4e 75 6d 2c 20 6f 70 74 |nt Error|Num, opt|
|00000830| 69 6f 6e 61 6c 20 73 74 | 72 69 6e 67 20 44 61 74 |ional st|ring Dat|
|00000840| 61 29 0d 0a 7b 0d 0a 09 | 73 77 69 74 63 68 28 45 |a)..{...|switch(E|
|00000850| 72 72 6f 72 4e 75 6d 29 | 0d 0a 09 7b 0d 0a 09 63 |rrorNum)|...{...c|
|00000860| 61 73 65 20 34 30 30 3a | 0d 0a 09 09 48 54 54 50 |ase 400:|....HTTP|
|00000870| 52 65 73 70 6f 6e 73 65 | 28 22 48 54 54 50 2f 31 |Response|("HTTP/1|
|00000880| 2e 31 20 34 30 30 20 42 | 61 64 20 52 65 71 75 65 |.1 400 B|ad Reque|
|00000890| 73 74 22 29 3b 0d 0a 09 | 09 53 65 6e 64 54 65 78 |st");...|.SendTex|
|000008a0| 74 28 22 3c 54 49 54 4c | 45 3e 34 30 30 20 42 61 |t("<TITL|E>400 Ba|
|000008b0| 64 20 52 65 71 75 65 73 | 74 3c 2f 54 49 54 4c 45 |d Reques|t</TITLE|
|000008c0| 3e 3c 48 31 3e 34 30 30 | 20 42 61 64 20 52 65 71 |><H1>400| Bad Req|
|000008d0| 75 65 73 74 3c 2f 48 31 | 3e 49 66 20 79 6f 75 20 |uest</H1|>If you |
|000008e0| 67 6f 74 20 74 68 69 73 | 20 65 72 72 6f 72 20 66 |got this| error f|
|000008f0| 72 6f 6d 20 61 20 73 74 | 61 6e 64 61 72 64 20 77 |rom a st|andard w|
|00000900| 65 62 20 62 72 6f 77 73 | 65 72 2c 20 70 6c 65 61 |eb brows|er, plea|
|00000910| 73 65 20 6d 61 69 6c 20 | 6a 61 63 6b 40 65 70 69 |se mail |jack@epi|
|00000920| 63 67 61 6d 65 73 2e 63 | 6f 6d 20 61 6e 64 20 73 |cgames.c|om and s|
|00000930| 75 62 6d 69 74 20 61 20 | 62 75 67 20 72 65 70 6f |ubmit a |bug repo|
|00000940| 72 74 2e 22 29 3b 0d 0a | 09 09 62 72 65 61 6b 3b |rt.");..|..break;|
|00000950| 0d 0a 09 63 61 73 65 20 | 34 30 31 3a 0d 0a 09 09 |...case |401:....|
|00000960| 48 54 54 50 52 65 73 70 | 6f 6e 73 65 28 22 48 54 |HTTPResp|onse("HT|
|00000970| 54 50 2f 31 2e 31 20 34 | 30 31 20 55 6e 61 75 74 |TP/1.1 4|01 Unaut|
|00000980| 68 6f 72 69 7a 65 64 22 | 29 3b 0d 0a 09 09 48 54 |horized"|);....HT|
|00000990| 54 50 48 65 61 64 65 72 | 28 22 57 57 57 2d 61 75 |TPHeader|("WWW-au|
|000009a0| 74 68 65 6e 74 69 63 61 | 74 65 3a 20 62 61 73 69 |thentica|te: basi|
|000009b0| 63 20 72 65 61 6c 6d 3d | 5c 22 22 24 44 61 74 61 |c realm=|\""$Data|
|000009c0| 24 22 5c 22 22 29 3b 0d | 0a 09 09 53 65 6e 64 54 |$"\"");.|...SendT|
|000009d0| 65 78 74 28 22 3c 54 49 | 54 4c 45 3e 34 30 31 20 |ext("<TI|TLE>401 |
|000009e0| 55 6e 61 75 74 68 6f 72 | 69 7a 65 64 3c 2f 54 49 |Unauthor|ized</TI|
|000009f0| 54 4c 45 3e 3c 48 31 3e | 34 30 31 20 55 6e 61 75 |TLE><H1>|401 Unau|
|00000a00| 74 68 6f 72 69 7a 65 64 | 3c 2f 48 31 3e 22 29 3b |thorized|</H1>");|
|00000a10| 0d 0a 09 09 62 72 65 61 | 6b 3b 0d 0a 09 63 61 73 |....brea|k;...cas|
|00000a20| 65 20 34 30 34 3a 0d 0a | 09 09 48 54 54 50 52 65 |e 404:..|..HTTPRe|
|00000a30| 73 70 6f 6e 73 65 28 22 | 48 54 54 50 2f 31 2e 31 |sponse("|HTTP/1.1|
|00000a40| 20 34 30 34 20 4f 62 6a | 65 63 74 20 4e 6f 74 20 | 404 Obj|ect Not |
|00000a50| 46 6f 75 6e 64 22 29 3b | 0d 0a 09 09 53 65 6e 64 |Found");|....Send|
|00000a60| 54 65 78 74 28 22 3c 54 | 49 54 4c 45 3e 34 30 34 |Text("<T|ITLE>404|
|00000a70| 20 46 69 6c 65 20 4e 6f | 74 20 46 6f 75 6e 64 3c | File No|t Found<|
|00000a80| 2f 54 49 54 4c 45 3e 3c | 48 31 3e 34 30 34 20 46 |/TITLE><|H1>404 F|
|00000a90| 69 6c 65 20 4e 6f 74 20 | 46 6f 75 6e 64 3c 2f 48 |ile Not |Found</H|
|00000aa0| 31 3e 54 68 65 20 55 52 | 4c 20 79 6f 75 20 72 65 |1>The UR|L you re|
|00000ab0| 71 75 65 73 74 65 64 20 | 77 61 73 20 6e 6f 74 20 |quested |was not |
|00000ac0| 66 6f 75 6e 64 2e 22 29 | 3b 0d 0a 09 09 62 72 65 |found.")|;....bre|
|00000ad0| 61 6b 3b 0d 0a 09 64 65 | 66 61 75 6c 74 3a 0d 0a |ak;...de|fault:..|
|00000ae0| 09 09 62 72 65 61 6b 3b | 0d 0a 09 7d 0d 0a 7d 0d |..break;|...}..}.|
|00000af0| 0a 0d 0a 23 69 66 20 49 | 47 5f 54 52 49 42 45 53 |...#if I|G_TRIBES|
|00000b00| 33 5f 41 44 4d 49 4e 20 | 20 20 2f 2f 20 67 6c 65 |3_ADMIN | // gle|
|00000b10| 6e 6e 3a 20 61 64 6d 69 | 6e 20 73 75 70 70 6f 72 |nn: admi|n suppor|
|00000b20| 74 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 53 65 6e 64 |t..funct|ion Send|
|00000b30| 53 74 61 6e 64 61 72 64 | 48 65 61 64 65 72 73 28 |Standard|Headers(|
|00000b40| 20 6f 70 74 69 6f 6e 61 | 6c 20 73 74 72 69 6e 67 | optiona|l string|
|00000b50| 20 43 6f 6e 74 65 6e 74 | 54 79 70 65 2c 20 6f 70 | Content|Type, op|
|00000b60| 74 69 6f 6e 61 6c 20 62 | 6f 6f 6c 20 62 43 61 63 |tional b|ool bCac|
|00000b70| 68 65 20 29 0d 0a 7b 0d | 0a 09 69 66 28 43 6f 6e |he )..{.|..if(Con|
|00000b80| 74 65 6e 74 54 79 70 65 | 20 3d 3d 20 22 22 29 0d |tentType| == "").|
|00000b90| 0a 09 09 43 6f 6e 74 65 | 6e 74 54 79 70 65 20 3d |...Conte|ntType =|
|00000ba0| 20 22 74 65 78 74 2f 68 | 74 6d 6c 22 3b 0d 0a 09 | "text/h|tml";...|
|00000bb0| 69 66 28 21 62 53 65 6e | 74 52 65 73 70 6f 6e 73 |if(!bSen|tRespons|
|00000bc0| 65 29 0d 0a 09 09 48 54 | 54 50 52 65 73 70 6f 6e |e)....HT|TPRespon|
|00000bd0| 73 65 28 22 48 54 54 50 | 2f 31 2e 31 20 32 30 30 |se("HTTP|/1.1 200|
|00000be0| 20 4f 4b 22 29 3b 0d 0a | 09 48 54 54 50 48 65 61 | OK");..|.HTTPHea|
|00000bf0| 64 65 72 28 22 53 65 72 | 76 65 72 3a 20 55 6e 72 |der("Ser|ver: Unr|
|00000c00| 65 61 6c 45 6e 67 69 6e | 65 20 55 57 65 62 20 57 |ealEngin|e UWeb W|
|00000c10| 65 62 20 53 65 72 76 65 | 72 20 42 75 69 6c 64 20 |eb Serve|r Build |
|00000c20| 22 24 43 6f 6e 6e 65 63 | 74 69 6f 6e 2e 4c 65 76 |"$Connec|tion.Lev|
|00000c30| 65 6c 2e 45 6e 67 69 6e | 65 56 65 72 73 69 6f 6e |el.Engin|eVersion|
|00000c40| 29 3b 0d 0a 09 48 54 54 | 50 48 65 61 64 65 72 28 |);...HTT|PHeader(|
|00000c50| 22 43 6f 6e 74 65 6e 74 | 2d 54 79 70 65 3a 20 22 |"Content|-Type: "|
|00000c60| 24 43 6f 6e 74 65 6e 74 | 54 79 70 65 29 3b 0d 0a |$Content|Type);..|
|00000c70| 09 69 66 20 28 62 43 61 | 63 68 65 29 0d 0a 09 7b |.if (bCa|che)...{|
|00000c80| 0d 0a 09 09 48 54 54 50 | 48 65 61 64 65 72 28 22 |....HTTP|Header("|
|00000c90| 43 61 63 68 65 2d 43 6f | 6e 74 72 6f 6c 3a 20 6d |Cache-Co|ntrol: m|
|00000ca0| 61 78 2d 61 67 65 3d 22 | 24 43 6f 6e 6e 65 63 74 |ax-age="|$Connect|
|00000cb0| 69 6f 6e 2e 57 65 62 53 | 65 72 76 65 72 2e 45 78 |ion.WebS|erver.Ex|
|00000cc0| 70 69 72 61 74 69 6f 6e | 53 65 63 6f 6e 64 73 29 |piration|Seconds)|
|00000cd0| 3b 0d 0a 09 09 2f 2f 20 | 4e 65 65 64 20 74 6f 20 |;....// |Need to |
|00000ce0| 63 6f 6d 70 75 74 65 20 | 61 6e 20 45 78 70 69 72 |compute |an Expir|
|00000cf0| 65 73 3a 20 74 61 67 20 | 2e 2e 2e 2e 20 61 72 72 |es: tag |.... arr|
|00000d00| 67 67 67 67 68 68 68 0d | 0a 09 09 48 54 54 50 48 |gggghhh.|...HTTPH|
|00000d10| 65 61 64 65 72 28 22 45 | 78 70 69 72 65 73 3a 22 |eader("E|xpires:"|
|00000d20| 40 47 65 74 48 54 54 50 | 45 78 70 69 72 61 74 69 |@GetHTTP|Expirati|
|00000d30| 6f 6e 28 43 6f 6e 6e 65 | 63 74 69 6f 6e 2e 57 65 |on(Conne|ction.We|
|00000d40| 62 53 65 72 76 65 72 2e | 45 78 70 69 72 61 74 69 |bServer.|Expirati|
|00000d50| 6f 6e 53 65 63 6f 6e 64 | 73 29 29 3b 0d 0a 09 7d |onSecond|s));...}|
|00000d60| 0d 0a 09 48 54 54 50 48 | 65 61 64 65 72 28 22 43 |...HTTPH|eader("C|
|00000d70| 6f 6e 6e 65 63 74 69 6f | 6e 3a 20 43 6c 6f 73 65 |onnectio|n: Close|
|00000d80| 22 29 3b 0d 0a 09 48 54 | 54 50 48 65 61 64 65 72 |");...HT|TPHeader|
|00000d90| 28 22 22 29 3b 0d 0a 7d | 0d 0a 23 65 6c 73 65 0d |("");..}|..#else.|
|00000da0| 0a 66 75 6e 63 74 69 6f | 6e 20 53 65 6e 64 53 74 |.functio|n SendSt|
|00000db0| 61 6e 64 61 72 64 48 65 | 61 64 65 72 73 28 20 6f |andardHe|aders( o|
|00000dc0| 70 74 69 6f 6e 61 6c 20 | 73 74 72 69 6e 67 20 43 |ptional |string C|
|00000dd0| 6f 6e 74 65 6e 74 54 79 | 70 65 20 29 0d 0a 7b 0d |ontentTy|pe )..{.|
|00000de0| 0a 09 69 66 28 43 6f 6e | 74 65 6e 74 54 79 70 65 |..if(Con|tentType|
|00000df0| 20 3d 3d 20 22 22 29 0d | 0a 09 09 43 6f 6e 74 65 | == "").|...Conte|
|00000e00| 6e 74 54 79 70 65 20 3d | 20 22 74 65 78 74 2f 68 |ntType =| "text/h|
|00000e10| 74 6d 6c 22 3b 0d 0a 09 | 69 66 28 21 62 53 65 6e |tml";...|if(!bSen|
|00000e20| 74 52 65 73 70 6f 6e 73 | 65 29 0d 0a 09 09 48 54 |tRespons|e)....HT|
|00000e30| 54 50 52 65 73 70 6f 6e | 73 65 28 22 48 54 54 50 |TPRespon|se("HTTP|
|00000e40| 2f 31 2e 31 20 32 30 30 | 20 4f 4b 22 29 3b 0d 0a |/1.1 200| OK");..|
|00000e50| 09 48 54 54 50 48 65 61 | 64 65 72 28 22 53 65 72 |.HTTPHea|der("Ser|
|00000e60| 76 65 72 3a 20 55 6e 72 | 65 61 6c 45 6e 67 69 6e |ver: Unr|ealEngin|
|00000e70| 65 20 55 57 65 62 20 57 | 65 62 20 53 65 72 76 65 |e UWeb W|eb Serve|
|00000e80| 72 20 42 75 69 6c 64 20 | 22 24 43 6f 6e 6e 65 63 |r Build |"$Connec|
|00000e90| 74 69 6f 6e 2e 4c 65 76 | 65 6c 2e 45 6e 67 69 6e |tion.Lev|el.Engin|
|00000ea0| 65 56 65 72 73 69 6f 6e | 29 3b 0d 0a 09 48 54 54 |eVersion|);...HTT|
|00000eb0| 50 48 65 61 64 65 72 28 | 22 43 6f 6e 74 65 6e 74 |PHeader(|"Content|
|00000ec0| 2d 54 79 70 65 3a 20 22 | 24 43 6f 6e 74 65 6e 74 |-Type: "|$Content|
|00000ed0| 54 79 70 65 29 3b 0d 0a | 09 48 54 54 50 48 65 61 |Type);..|.HTTPHea|
|00000ee0| 64 65 72 28 22 22 29 3b | 0d 0a 7d 0d 0a 23 65 6e |der("");|..}..#en|
|00000ef0| 64 69 66 0d 0a 0d 0a 66 | 75 6e 63 74 69 6f 6e 20 |dif....f|unction |
|00000f00| 52 65 64 69 72 65 63 74 | 28 73 74 72 69 6e 67 20 |Redirect|(string |
|00000f10| 55 52 4c 29 0d 0a 7b 0d | 0a 09 48 54 54 50 52 65 |URL)..{.|..HTTPRe|
|00000f20| 73 70 6f 6e 73 65 28 22 | 48 54 54 50 2f 31 2e 31 |sponse("|HTTP/1.1|
|00000f30| 20 33 30 32 20 44 6f 63 | 75 6d 65 6e 74 20 4d 6f | 302 Doc|ument Mo|
|00000f40| 76 65 64 22 29 3b 0d 0a | 09 48 54 54 50 48 65 61 |ved");..|.HTTPHea|
|00000f50| 64 65 72 28 22 4c 6f 63 | 61 74 69 6f 6e 3a 20 22 |der("Loc|ation: "|
|00000f60| 24 55 52 4c 29 3b 0d 0a | 09 53 65 6e 64 54 65 78 |$URL);..|.SendTex|
|00000f70| 74 28 22 3c 68 65 61 64 | 3e 3c 74 69 74 6c 65 3e |t("<head|><title>|
|00000f80| 44 6f 63 75 6d 65 6e 74 | 20 4d 6f 76 65 64 3c 2f |Document| Moved</|
|00000f90| 74 69 74 6c 65 3e 3c 2f | 68 65 61 64 3e 22 29 3b |title></|head>");|
|00000fa0| 0d 0a 09 53 65 6e 64 54 | 65 78 74 28 22 3c 62 6f |...SendT|ext("<bo|
|00000fb0| 64 79 3e 3c 68 31 3e 4f | 62 6a 65 63 74 20 4d 6f |dy><h1>O|bject Mo|
|00000fc0| 76 65 64 3c 2f 68 31 3e | 54 68 69 73 20 64 6f 63 |ved</h1>|This doc|
|00000fd0| 75 6d 65 6e 74 20 6d 61 | 79 20 62 65 20 66 6f 75 |ument ma|y be fou|
|00000fe0| 6e 64 20 3c 61 20 48 52 | 45 46 3d 5c 22 22 24 55 |nd <a HR|EF=\""$U|
|00000ff0| 52 4c 24 22 5c 22 3e 68 | 65 72 65 3c 2f 61 3e 2e |RL$"\">h|ere</a>.|
|00001000| 22 29 3b 0d 0a 7d 0d 0a | 0d 0a 0d 0a 0d 0a 0d 0a |");..}..|........|
|00001010| 00 | |. | |
+--------+-------------------------+-------------------------+--------+--------+